/**
 * 
 */
package V2c02;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 * @author gjunming@gmail.com
 * @version Aug 19, 2009 6:07:32 PM
 */
public class XmlFormText {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {

			@Override
			public void run() {
				JFrame xmlFrame = new XmlFrame();
				xmlFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				xmlFrame.setVisible(true);
			}
		});

	}
}

class XmlFrame extends JFrame {
	private static final int FWIDTH = 600;
	private static final int FHEIGHT = 400;

	public XmlFrame() {
		setTitle("XmlDomTreeView");
		setSize(FWIDTH, FHEIGHT);

		JMenuBar xmlMenuBar = new JMenuBar();
		JMenu xmlFile = new JMenu("File");
		JMenuItem xmlOpen = new JMenuItem("Open");
		xmlFile.add(xmlOpen);
		xmlMenuBar.add(xmlFile);

		setJMenuBar(xmlMenuBar);
	}

}
